﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ConfigureNZBLoader
{
    public partial class AddFeed : Form
    {
        private string _FeedName;
        public string FeedName
        {
            get { return _FeedName; }
        }


        private string _Address;
        public string Address
        {
            get { return _Address; }
        }



        public AddFeed()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            if (txtFeedName.Text.Length != 0 && txtAddress.Text.Length != 0)
            {
                DialogResult = DialogResult.OK;
                _FeedName = txtFeedName.Text;
                _Address = txtAddress.Text;
                Close();
            }
        }
    }
}
